package com.hibernate;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message  implements java.io.Serializable {


    // Fields    

     private Integer codemessage;
     private String destinatairemessage;
     private String contenumessage;
     private Timestamp dateenvoimessage;
     private Set evenements = new HashSet(0);
     private Set autorisations = new HashSet(0);


    // Constructors

    /** default constructor */
    public Message() {
    }

    
    /** full constructor */
    public Message(String destinatairemessage, String contenumessage, Timestamp dateenvoimessage, Set evenements, Set autorisations) {
        this.destinatairemessage = destinatairemessage;
        this.contenumessage = contenumessage;
        this.dateenvoimessage = dateenvoimessage;
        this.evenements = evenements;
        this.autorisations = autorisations;
    }

   
    // Property accessors

    public Integer getCodemessage() {
        return this.codemessage;
    }
    
    public void setCodemessage(Integer codemessage) {
        this.codemessage = codemessage;
    }

    public String getDestinatairemessage() {
        return this.destinatairemessage;
    }
    
    public void setDestinatairemessage(String destinatairemessage) {
        this.destinatairemessage = destinatairemessage;
    }

    public String getContenumessage() {
        return this.contenumessage;
    }
    
    public void setContenumessage(String contenumessage) {
        this.contenumessage = contenumessage;
    }

    public Timestamp getDateenvoimessage() {
        return this.dateenvoimessage;
    }
    
    public void setDateenvoimessage(Timestamp dateenvoimessage) {
        this.dateenvoimessage = dateenvoimessage;
    }

    public Set getEvenements() {
        return this.evenements;
    }
    
    public void setEvenements(Set evenements) {
        this.evenements = evenements;
    }

    public Set getAutorisations() {
        return this.autorisations;
    }
    
    public void setAutorisations(Set autorisations) {
        this.autorisations = autorisations;
    }
   








}